package com.contain.system.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import java.util.HashMap;
import java.util.Map;

/**
 * @Auther: tianchao
 * @Date: 2021/7/13 21:44
 * @Description:
 */
//@RestControllerAdvice
public class Exceptionhandler {

    //@ExceptionHandler(value = RuntimeException.class)
    public Map<String,String> handler(){
        Map<String,String> map = new HashMap<>();
        map.put("key","value");
        return map;
    }
}
